package edu.umd.ion.wavemeter.server;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@SuppressWarnings("serial")
@Entity(name = "MyTemperature") //Name of the entity
public class PersistentTemperature implements Serializable {
		@Id //signifies the primary key
		@Column(name = "id", nullable = false)
		@GeneratedValue(strategy = GenerationType.SEQUENCE)
		protected long id;

		@Column(name="time")
		protected Date time;
		
		@Column(name="temperature")
		protected double temperature;

}
